import service from '../utils/request'

// 获取专家列表
export const getzhuanjia = (data) => {
    return service({
      url: '/Zjglb/queryTerritory',
      method: 'POST',
      data
    })
}
// 新增专家
export const addZhuanjia = (data) => {
    return service({
      url: '/Zjglb/add',
      method: 'POST',
      data
    })
}
// 编辑专家
export const editZhuanjia = (id, data) => {
    return service({
      url: `/Zjglb/${id}`,
      method: 'POST',
      data
    })
}
// 专家检索
export const searchZhuanjia = (data, value) => {
  return service({
    url: `/Zjglb/query/?xm=${data}&&jsly=${value}`,
    method: 'GET',
    // data
  })
}
